<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>新建设备任务</title>
    <link href="../../assets/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="../../assets/css/public.css" type="text/css" rel="stylesheet">
    <script src="../../assets/jquery/jquery.2.1.1.min.js"></script>
    <script src="../../assets/lay/layer/layer.js"></script>
    <script src="../../assets/jquery/jquery.validate.min.js"></script>
    <script src="../../assets/jquery/jquery.validate.ext.js"></script>
    <script src="../../assets/bootstrap/js/bootstrap.min.js"></script>
    <script src="../../assets/lay/laydate/laydate.js"></script>
    <script >
        window.menuCode='CollectionDir';
        window.thirdMenuCode='task';
    </script>
    <script src="../../assets/common/d_common.js"></script>
    <script src="../../assets/jrain/jrain.js"></script>
    <script src="../../assets/jrain/json2.js"></script>
    <script src="../../assets/jrain/dateformat.js"></script>
    <script src="../../assets/jrain/jraincommon.js"></script>
    <script src="../../assets/jrain/Math.js"></script>
    <script src="js/task_data_add.js"></script>
    <script >
        $(function(){
            addInit();
        });
    </script>
</head>
<body>
<div class="container">
    <!--head-->
    <div id="header" class="headerbox">

    </div>
    <!--head-->
    <!--内容区域-->
    <div class="row  sidebar-mini" id="mainCont">
        <div class="wrapper">
            <div class="main-left" id="leftMenu">left</div>
            <div class="main-right">
                <div class="rightcont" id="rightCont">
                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 q-sheetTitle pl10">基本信息</div>
                    <form  id="theform" name="theform"   class="form-inline q-form">
                        <input type="hidden" id="b_iotCodeOld" name="b_iotCodeOld">
                        <input type="hidden" id="b_taskId" name="b_taskId">
                        <input type="hidden" id="b_taskCode" name="b_taskCode">

                        <input type="hidden" name="url" value="/rest/IotTaskDataBusiness/add">
                    	<div class="col-lg-4 col-md-4 col-sm-4 mt10">
                            <label class="control-label text-w130"><span
                                    class="redstar">*</span> 存储表格：</label>
                            <input  id="b_iotTable" name="b_iotTable"  type="text" class="form-control q-form-ipt q-form-ipt-device" placeholder="">
                        </div>
                    	<div class="col-lg-4 col-md-4 col-sm-4 mt10">
                            <label class="control-label text-w130"><span
                                    class="redstar">*</span> 设备编码：</label>
                            <input id="b_iotCode" name="b_iotCode" type="text" class="form-control q-form-ipt q-form-ipt-device" placeholder="">
                        </div>
                    	<div class="col-lg-4 col-md-4 col-sm-4 mt10">
                            <label class="control-label text-w130">采样时间：</label>
                            <input id="b_iotTm" name="b_iotTm" type="text" class="form-control q-form-ipt q-form-ipt-device" placeholder="">
                        </div>
                    	<div class="col-lg-4 col-md-4 col-sm-4 mt10">
                            <label class="control-label text-w130"><span
                                    class="redstar">*</span> 设备名称 ：</label>
                            <input id="b_iotName" name="b_iotName"  type="text" class="form-control q-form-ipt q-form-ipt-device" placeholder="">
                        </div>
                    	<div class="col-lg-4 col-md-4 col-sm-4 mt10">
                            <label class="control-label text-w130">精度：</label>
                            <input id="b_iotScale"
                                   name="b_iotScale" type="text" class="form-control q-form-ipt q-form-ipt-device" placeholder="">
                        </div>
                        <div class="col-lg-4 col-md-4 col-sm-4 mt10">
                            <label class="control-label text-w130">排序：</label>
                            <input id="b_rowSort"
                                   name="b_rowSort" type="text" class="form-control q-form-ipt q-form-ipt-device" placeholder="" value="1000">
                        </div>
                        
                        
                        <div class="col-lg-4 col-md-4 col-sm-4 mt10 q-textarea">
                            <label class="control-label text-w130">时间表达式 ：</label>
                            <textarea id="b_iotDexpr" name="b_iotDexpr" rows="3" cols="" class="form-control q-form-ipt q-form-ipt-device" placeholder=""></textarea>
                        </div>
                        <div class="col-lg-4 col-md-4 col-sm-4 mt10 q-textarea">
                            <label class="control-label text-w130">数值表达式 ：</label>
                            <textarea id="b_iotExpr" name="b_iotExpr" rows="3" cols="" class="form-control q-form-ipt q-form-ipt-device" placeholder=""></textarea>
                        </div>
                        <div class="col-lg-4 col-md-4 col-sm-4 mt10 q-textarea">
                            <label class="control-label text-w130">状态：</label>
                            <label class=""><input name="b_status_1" checked="checked" value="1" type="radio"> 启用</label>
                            <label class="ml10"><input name="b_status_1" value="2" type="radio"> 停用</label>
                            <input type="hidden" id="b_status" name="b_status" value="1">
                        </div> 
                        <div class="col-lg-4 col-md-4 col-sm-4 mt10 q-textarea">
                            <label class="control-label text-w130">备注 ：</label>
                            <textarea id="b_remarks" name="b_remarks" rows="3" cols="" class="form-control q-form-ipt q-form-ipt-device" placeholder=""></textarea>
                        </div>
                    </form>
                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 q-bottom-btn mt20">
                        <a id="btn_ret" class="q-form-btn q-form-btn-white mr5" id="returnBut">
                            <i class="qxticon icon-back"></i> 返回
                        </a>
                        <a href="javascript:;" class="q-form-btn q-form-btn-blue ml5" id="subBtn">
                            <i class="glyphicon glyphicon-floppy-save"></i> 保存
                        </a>
                    </div>
                </div>
                <!--底部区域-->
                <!--底部区域-->
                <div class="footer" id="footer"></div>
            </div>
        </div>
    </div>
    <!--内容区域-->
</div>
</body>
</html>